{
  "base": {
    "name": "文本",
    "module_name": "download",
    "version": "1.0.41",
    "show": 1
  },
  "width": 200,
  "height": 70,
  "config": [
    {
      "name": "chart",
      "displayName": "基础配置",
      "config": {
        "layout": "horizontal"
      },
      "value": [
        {
          "name": "dimension",
          "displayName": "位置尺寸",
          "value": [
            {
              "name": "chartPosition",
              "displayName": "图表位置",
              "value": [
                {
                  "name": "left",
                  "displayName": "X轴坐标",
                  "labelLayout": 24,
                  "labelPosition": "bottom",
                  "value": 100
                },
                {
                  "name": "top",
                  "labelLayout": 24,
                  "labelPosition": "bottom",
                  "displayName": "Y轴坐标",
                  "value": 100
                }
              ],
              "labelLayout": 8
            },
            {
              "name": "chartDimension",
              "displayName": "图表尺寸",
              "value": [
                {
                  "name": "width",
                  "displayName": "宽度",
                  "labelLayout": 24,
                  "labelPosition": "bottom",
                  "value": 200
                },
                {
                  "name": "height",
                  "displayName": "高度",
                  "labelLayout": 24,
                  "labelPosition": "bottom",
                  "value": 50
                }
              ],
              "labelLayout": 8
            }
          ]
        },
        {
          "type": "positionConstraints",
          "name": "positionConstraints",
          "displayName": "位置约束",
          "value": {
            "verticalPosition": "center",
            "horizontalPosition": "left"
          }
        },
        {
          "type": "group",
          "name": "textStyle",
          "displayName": "文本样式",
          "value": [
            {
              "type": "font",
              "name": "fontFamily",
              "displayName": "",
              "value": "Microsoft Yahei",
              "config": {
                "span": 16
              }
            },
            {
              "type": "number",
              "name": "fontSize",
              "displayName": "",
              "value": 32,
              "config": {
                "span": 8,
                "layout": 4
              }
            },
            {
              "name": "color",
              "displayName": "",
              "type": "multicolor",
              "value": {
                "type": "pure",
                "pure": "#fff",
                "linear": {
                  "stops": [
                    {
                      "offset": 0,
                      "color": "#fff"
                    },
                    {
                      "offset": 100,
                      "color": "#f0f"
                    }
                  ],
                  "angle": 0,
                  "opacity": 1
                }
              }
            },
            {
              "type": "boolean",
              "name": "bold",
              "displayName": "",
              "value": false,
              "config": {
                "mode": "icon",
                "icon": "bold",
                "span": 4
              }
            },
            {
              "type": "boolean",
              "name": "italic",
              "displayName": "",
              "value": false,
              "config": {
                "mode": "icon",
                "icon": "italic",
                "span": 4
              }
            },
            {
              "type": "number",
              "name": "letterSpacing",
              "displayName": "字距",
              "value": 0,
              "config": {
                "suffix": "px",
                "placeholder": "",
                "span": 8
              }
            },
            {
              "type": "number",
              "name": "lineHeight",
              "displayName": "行距",
              "value": 48,
              "config": {
                "suffix": "px",
                "placeholder": "",
                "span": 8
              }
            }
          ]
        },
        {
          "name": "textOverflow",
          "displayName": "文本溢出",
          "value": "ellipsis",
          "type": "select",
          "config": {
            "options": [
              {
                "name": "换行",
                "value": "break-word"
              },
              {
                "name": "省略号",
                "value": "ellipsis"
              },
              {
                "name": "跑马灯",
                "value": "marquee"
              }
            ]
          }
        },
        {
          "rule": [["textOverflow", "$eq", "marquee"]],
          "name": "speed",
          "displayName": "滚动速度",
          "type": "number",
          "value": 5,
          "config": {
            "min": 1
          }
        },
        {
          "name": "textAlign",
          "displayName": "水平对齐",
          "value": "left",
          "type": "radio",
          "config": {
            "options": [
              {
                "name": "左对齐",
                "value": "left",
                "icon": "align-left"
              },
              {
                "name": "居中对齐",
                "value": "center",
                "icon": "align-center"
              },
              {
                "name": "右对齐",
                "value": "right",
                "icon": "align-right"
              },
              {
                "name": "两端对齐",
                "value": "justify",
                "icon": "align-justify"
              }
            ],
            "mode": "icon"
          }
        },
        {
          "name": "textVertical",
          "displayName": "垂直对齐",
          "value": "center",
          "type": "radio",
          "config": {
            "mode": "icon",
            "options": [
              {
                "name": "上",
                "value": "top",
                "icon": "toward-top"
              },
              {
                "name": "居中",
                "icon": "toward-column-center",
                "value": "center"
              },
              {
                "name": "下",
                "icon": "toward-bottom",
                "value": "bottom"
              }
            ]
          }
        },
        {
          "name": "testRule",
          "displayName": "跨tab规则",
          "value": false,
          "type": "boolean"
        },
        {
          "name": "fixedWidth",
          "displayName": "固定宽度",
          "value": false,
          "type": "boolean"
        },
        {
          "rule": [["fixedWidth", "$eq", true]],
          "name": "width",
          "displayName": "宽度",
          "value": 24,
          "type": "number",
          "config": {
            "suffix": "px",
            "min": 12
          }
        },
        {
          "name": "shadow",
          "displayName": "阴影",
          "value": [
            {
              "type": "boolean",
              "name": "show",
              "displayName": "",
              "value": true
            },
            {
              "rule": [["show", "$eq", true]],
              "type": "shadow",
              "name": "shadow",
              "displayName": "文本阴影",
              "value": {
                "color": "#0075FF",
                "vShadow": 0,
                "hShadow": 0,
                "blur": 8
              }
            }
          ]
        }
      ]
    },
    {
      "name": "animation",
      "displayName": "动画",
      "value": [
        {
          "type": "boolean",
          "name": "open",
          "displayName": "启用",
          "value": true
        },
        {
          "type": "positionConstraints",
          "name": "positionConstraints",
          "displayName": "位置约束",
          "value": {
            "verticalPosition": "center",
            "horizontalPosition": "left"
          }
        },
        {
          "rule": [["chart/testRule", "$eq", true]],
          "name": "textVertical",
          "displayName": "垂直对齐",
          "value": "center",
          "type": "radio",
          "config": {
            "mode": "icon",
            "options": [
              {
                "name": "上",
                "value": "top",
                "icon": "toward-top"
              },
              {
                "name": "居中",
                "icon": "toward-column-center",
                "value": "center"
              },
              {
                "name": "下",
                "icon": "toward-bottom",
                "value": "bottom"
              }
            ]
          }
        },
        {
          "rule": [["open", "$eq", true]],
          "type": "radio",
          "name": "type",
          "displayName": "动画类型",
          "value": "normal",
          "config": {
            "options": [
              {
                "name": "默认",
                "value": "normal"
              },
              {
                "name": "连续",
                "value": "continue"
              }
            ],
            "mode": "normal"
          }
        },
        {
          "rule": [["open", "$eq", true]],
          "type": "number",
          "name": "speed",
          "displayName": "动画速度",
          "value": 50,
          "config": {
            "min": 0
          }
        },
        {
          "rule": [
            ["open", "$eq", true],
            ["type", "$eq", "normal"]
          ],
          "type": "number",
          "name": "stayTime",
          "displayName": "结束停留时间",
          "value": 3,
          "config": {
            "min": 0,
            "suffix": "秒"
          }
        },
        {
          "rule": [
            ["open", "$eq", true],
            ["type", "$eq", "normal"]
          ],
          "type": "number",
          "name": "delayTime",
          "displayName": "延迟开始时间",
          "value": 3,
          "config": {
            "min": 0,
            "suffix": "秒"
          }
        }
      ]
    }
  ]
}
